﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.EventBus;
using my.abp.Domain.Shared.Etos;

namespace my.abp.Domain.EventHandlers
{
	/// <summary>
	/// 登录事件
	/// </summary>
	public class LoginEventHandler : ILocalEventHandler<LoginEventArgs>
		,ITransientDependency
	{
		private readonly ILogger<LoginEventHandler> _logger;

		
		public LoginEventHandler(ILogger<LoginEventHandler> logger ) { _logger = logger; }
		public async Task HandleEventAsync(LoginEventArgs eventData)
		{
			_logger.LogInformation($"用户【{eventData.UserId}:{eventData.UserName}】登入系统");
		}
	}
}
